import service from '@/utils/request'

// @Tags P201Delivers
// @Summary 创建P201Delivers
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.P201Delivers true "创建P201Delivers"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /p201Delivers/createP201Delivers [post]
export const createP201Delivers = (data) => {
     return service({
         url: "/p201Delivers/createP201Delivers",
         method: 'post',
         data
     })
 }


// @Tags P201Delivers
// @Summary 删除P201Delivers
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.P201Delivers true "删除P201Delivers"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /p201Delivers/deleteP201Delivers [delete]
 export const deleteP201Delivers = (data) => {
     return service({
         url: "/p201Delivers/deleteP201Delivers",
         method: 'delete',
         data
     })
 }

// @Tags P201Delivers
// @Summary 删除P201Delivers
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除P201Delivers"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /p201Delivers/deleteP201Delivers [delete]
 export const deleteP201DeliversByIds = (data) => {
     return service({
         url: "/p201Delivers/deleteP201DeliversByIds",
         method: 'delete',
         data
     })
 }

// @Tags P201Delivers
// @Summary 更新P201Delivers
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.P201Delivers true "更新P201Delivers"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /p201Delivers/updateP201Delivers [put]
 export const updateP201Delivers = (data) => {
     return service({
         url: "/p201Delivers/updateP201Delivers",
         method: 'put',
         data
     })
 }


// @Tags P201Delivers
// @Summary 用id查询P201Delivers
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.P201Delivers true "用id查询P201Delivers"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /p201Delivers/findP201Delivers [get]
 export const findP201Delivers = (params) => {
     return service({
         url: "/p201Delivers/findP201Delivers",
         method: 'get',
         params
     })
 }


// @Tags P201Delivers
// @Summary 分页获取P201Delivers列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取P201Delivers列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /p201Delivers/getP201DeliversList [get]
 export const getP201DeliversList = (params) => {
     return service({
         url: "/p201Delivers/getP201DeliversList",
         method: 'get',
         params
     })
 }